import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'Main',
  component: () => import("cli/views/Dev"),
  children: [
    {
      path: '/:clazzType/:version',
      name: 'Preview',
      component: ()=> import('cli/views/Preview')
    }
  ]
}]

const router = new VueRouter({
  mode: 'hash',
  routes
})

export default router
